import request  from '@/utils/request';

import { BASE_URL } from '@/config/query';


export async function queryBasicIntro() {
  return request(`${BASE_URL}/owner_basic/detail`);
}
export async function modifyBasicIntro(intro) {
  return request(`${BASE_URL}/owner_basic/modify`,{intro});
}
export async function queryDocmentPage(param) {
  return request(`${BASE_URL}/owner_certificate/page`,param);
}
export async function createDocment(param) {
  return request(`${BASE_URL}/owner_certificate/create`,param);
}
export async function modifyDocment(param) {
  return request(`${BASE_URL}/owner_certificate/modify`,param);
}


export async function queryTotal() {
  return request(`${BASE_URL}/device/count_statistics`);
}

export async function queryStatisticalIndex() {
  return request(`${BASE_URL}/device/page_statistics`)
}

export async function createPersonnel(params) {
  return request(`${BASE_URL}/owner_personnel/create`, params)
}

export async function queryPersonnelDetail() {
  return request(`${BASE_URL}/owner_personnel/detail`)
}

export async function modifyPersonnel(params) {  
  return request(`${BASE_URL}/owner_personnel/modify`, params)
}